home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / usplash.preinst < prev    next >
Text File  |  2008-10-16  |  371b  |  13 lines

  1. #!/bin/sh -e
  2.  
  3. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  4.     if dpkg --compare-versions "$2" lt-nl "0.5.24"; then
  5.         # migrate old rc symlinks
  6.         for l in 0 1 6; do
  7.             if [ -L /etc/rc$l.d/K01usplash ] && ! [ -e /etc/rc$l.d/K02usplash ]; then
  8.                 mv /etc/rc$l.d/K01usplash /etc/rc$l.d/K02usplash
  9.             fi
  10.         done
  11.     fi
  12. fi
  13.